<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/IncludeTop.jsp" %>
<html>
<head>
<base href="<%=basePath%>">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/listDanshiEvent.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
	<table width="100%" border="1" >
		<tr>
			<td colspan="11" width="100%" align="right">
				<form action="common/listGuoguanEvent.do">
				<select name="leagueName" onchange="javaScript:document.getElementsByTagName('form')[0].submit()">
					<option value="all">全部赛区</option>
					<c:forEach var="event" items="${requestScope.events}">
						<c:if test="${empty leagueid || leagueid != event.comp.league.id}">
							<option value="<c:out value="${event.comp.league.id}" />"  <c:if test="${requestScope.leagueId == event.comp.league.id}">selected</c:if> >
								<c:out value="${event.comp.league.name_zh}" />
							</option>
						</c:if>
						<c:set var="leagueid" value="${event.comp.league.id}"></c:set>
					</c:forEach>
				</select>
				</form>
			</td>
		</tr>
		<tr><td colspan="11" width="100%" align="center">足球赛事综合列表</td></tr>
		
			<tr>
				<th align="center" width="8%">时间</th>
				<th align="center" width="12%">主客队伍</th>
				<th align="center" width="5%">独赢</th>
				<th align="center" width="11%">让球</th>
				<th align="center" width="11%">大/小</th>
				<th align="center" width="8%">单/双</th>
				<th align="center" width="11%">让球<br/>上半场</th>
				<th align="center" width="11%">大/小<br/>上半场</th>
				<th align="center" width="8%">独赢<br/>上半场</th>
				<th align="center" width="9%">入球数</th>
				<th align="center" width="6%">其它信息</th>
			</tr>
			
			<c:forEach var="event" items="${requestScope.events}">
			<c:if test="${empty name || event.comp.league.name_zh != name}">
			<tr>
				<td colspan="11" align="left"><c:out value="${event.comp.league.name_zh}" /></td>
			</tr>
			</c:if>	
			<c:set var="name" value="${event.comp.league.name_zh}" />
			<tr>
				<td align="center">
					<fmt:formatDate value="${event.comp.time}" type="both" />
				</td>
				<td>
					<c:out value="${event.comp.home.name_zh}"></c:out>[主]
					<br/>
					<c:out value="${event.comp.road.name_zh}"></c:out>
					<br/>
					和局
				</td>
				<td>
					<a href="user/tobet.do?eventid=<c:out value="${event.id }"/>&oddtype=dy_win&guoguan=true">
						<c:out value="${event.duying.win}" />
					</a>
					<br/>
					<a href="user/tobet.do?eventid=<c:out value="${event.id }"/>&oddtype=dy_lose&guoguan=true">
						<c:out value="${event.duying.lose}" />
					</a>
					<br/>
					<a href="user/tobet.do?eventid=<c:out value="${event.id }"/>&oddtype=dy_draw&guoguan=true">
						<c:out value="${event.duying.draw}" />
					</a>
				</td>
				<td align="right">
					<c:if test="${event.rangqiu.who2who eq '主让客'}">
						<font color="red"><c:out value="${event.rangqiu.pankou}" /></font>&nbsp;
					</c:if>
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rq_home&guoguan=true" ><c:out value="${event.rangqiu.home}" /></a><br/>
					<c:if test="${event.rangqiu.who2who eq '客让主'}">
						<font color="red"><c:out value="${event.rangqiu.pankou}" /></font>&nbsp;
					</c:if>
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rq_road&guoguan=true" ><c:out value="${event.rangqiu.road}" /></a>
				</td>
				<td align="right">
					大 <c:out value="${event.daxiao.pankou}" />&nbsp; 
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dx_home&guoguan=true" ><c:out value="${event.daxiao.home}"></c:out></a><br/>
					小 <c:out value="${event.daxiao.pankou}" />&nbsp; 
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dx_road&guoguan=true" >
						<c:out value="${event.daxiao.road}"></c:out>
					</a>
				</td>
				
				<td align="center">单&nbsp;&nbsp;<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=ds_odd&guoguan=true" ><c:out value="${event.danshuang.odd}" /></a><br/>双&nbsp;&nbsp;<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=ds_even&guoguan=true" ><c:out value="${event.danshuang.even}" /></a>
				</td>
				
				<td align="right">
					<c:if test="${event.rangqiuHalf.who2who eq '主让客'}">
						<c:out value="${event.rangqiuHalf.pankou}" />&nbsp;
					</c:if>
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rq_half_home&guoguan=true" >
						<c:out value="${event.rangqiuHalf.home}" />
					</a>
					<br/>
					<c:if test="${event.rangqiuHalf.who2who eq '客让主'}">
						<c:out value="${event.rangqiuHalf.pankou}" />&nbsp;
					</c:if>
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rq_half_road&guoguan=true" >
						<c:out value="${event.rangqiuHalf.road}" />
					</a>
				</td>
				
				<td align="right">
					大 <c:out value="${event.daxiaoHalf.pankou}" />&nbsp; 
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dx_half_home&guoguan=true" >
						<c:out value="${event.daxiaoHalf.home}"></c:out>
					</a>
					<br/>
					小 <c:out value="${event.daxiaoHalf.pankou}" />&nbsp; 
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dx_half_road&guoguan=true" >
						<c:out value="${event.daxiaoHalf.road}"></c:out>
					</a>
				</td>
				
				<td align="center">
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dy_half_win" >
						<c:out value="${event.duyingHalf.win}" />
					</a>
					<br/>
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dy_half_lose" >
						<c:out value="${event.duyingHalf.lose}" />
					</a>
					<br/>
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=dy_half_draw" >
						<c:out value="${event.duyingHalf.draw}" />
					</a>
				</td>
				
				<td align="center">
					0-1&nbsp;
					<a  href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rqs_01&guoguan=true" >
						<c:out value="${event.ruqiushu.s01}" />
					</a>
					<br/>
					2-3&nbsp;
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rqs_23&guoguan=true" >
						<c:out value="${event.ruqiushu.s23}" />
					</a>
					<br/>
					4-6&nbsp;
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rqs_46&guoguan=true" >
						<c:out value="${event.ruqiushu.s46}" />
					</a>
					<br/>
					up7&nbsp;
					<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=rqs_7&guoguan=true" >
						<c:out value="${event.ruqiushu.sup7}" />
					</a>
				</td>
				<td align="center">
					<a onclick="playClick(this)" style="cursor: pointer" id="<c:out value="${event.id}"/>" >多种<br/>玩法</a>
				</td>
			</tr>
			
			<tr>
				<td colspan="11">
					<div align="center" class="morebets" id="<c:out value="${event.id}" />_info">	
						<br/>
						<br/>
						<table width="90%" border="1">
						
							<tr>
								<td colspan="16">
									波胆
								</td>
							</tr>
							
							<tr>
								<th>1:0</th>
								<th>2:0</th>
								<th>2:1</th>
								<th>3:0</th>
								<th>3:1</th>
								<th>3:2</th>
								<th>4:0</th>
								<th>4:1</th>
								<th>4:2</th>
								<th>4:3</th>
								<th>0:0</th>
								<th>1:1</th>
								<th>2:2</th>
								<th>3:3</th>
								<th>4:4</th>
								<th>up5</th>
							</tr>
							
							<tr>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_10" >
										<c:out value="${event.bodan.s10}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_20" >
										<c:out value="${event.bodan.s20}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_21" >
										<c:out value="${event.bodan.s21}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_30" >
										<c:out value="${event.bodan.s30}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_31" >
										<c:out value="${event.bodan.s31}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_32" >
										<c:out value="${event.bodan.s32}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_40" >
										<c:out value="${event.bodan.s40}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_41" >
										<c:out value="${event.bodan.s41}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_42" >
										<c:out value="${event.bodan.s42}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_43" >
										<c:out value="${event.bodan.s43}"></c:out>
									</a>
								</td>
								<td align="center" rowspan="2">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_00" >
										<c:out value="${event.bodan.s00}"></c:out>
									</a>
								</td>
								<td align="center" rowspan="2">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_11" >
										<c:out value="${event.bodan.s11}"></c:out>
									</a>
								</td>
								<td align="center" rowspan="2">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_22" >
										<c:out value="${event.bodan.s22}"></c:out>
									</a>
								</td>
								<td align="center" rowspan="2">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_33" >
										<c:out value="${event.bodan.s33}"></c:out>
									</a>
								</td>
								<td align="center" rowspan="2">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_44" >
										<c:out value="${event.bodan.s44}"></c:out>
									</a>
								</td>
								<td align="center" rowspan="2">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_xx" >
										<c:out value="${event.bodan.sxx}"></c:out>
									</a>
								</td>
							</tr>
							
							<tr>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_01" >
										<c:out value="${event.bodan.s01}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_02" >
										<c:out value="${event.bodan.s02}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_12" >
										<c:out value="${event.bodan.s12}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_03" >
										<c:out value="${event.bodan.s03}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_13" >
										<c:out value="${event.bodan.s13}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_23" >
										<c:out value="${event.bodan.s23}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_04" >
										<c:out value="${event.bodan.s04}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_14" >
										<c:out value="${event.bodan.s14}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_24" >
										<c:out value="${event.bodan.s24}"></c:out>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bd_34" >
										<c:out value="${event.bodan.s34}"></c:out>
									</a>
								</td>
							</tr>
						</table>
						
						<br/>
						<br/>
						
						<table width="90%" border="1">
							<tr>
								<td colspan="9">
									半全场
								</td>
							</tr>
							<tr>
								<th align="center" >主/主</th>
								<th align="center" >主/和</th>
								<th align="center" >主/客</th>
								<th align="center" >和/主</th>
								<th align="center" >和/和</th>
								<th align="center" >和/客</th>
								<th align="center" >客/主</th>
								<th align="center" >客/和</th>
								<th align="center" >客/客</th>
							</tr>
							<tr>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_hh" >
										<c:out value="${event.banquanchang.hh}"/>
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_hd" >
										<c:out value="${event.banquanchang.hd}" />
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_hr" >
										<c:out value="${event.banquanchang.hr}" />
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_dh" >
										<c:out value="${event.banquanchang.dh}" />
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_dd" >
										<c:out value="${event.banquanchang.dd}" /> 
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_dr" >
										<c:out value="${event.banquanchang.dr}" />
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_rh" >
										<c:out value="${event.banquanchang.rh}" />
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_rd" >
										<c:out value="${event.banquanchang.rd}" />
									</a>
								</td>
								<td align="center">
									<a href="user/tobet.do?eventid=<c:out value="${event.id}" />&oddtype=bqc_rr" >
										<c:out value="${event.banquanchang.rr}" />
									</a>
								</td>
							</tr>
						</table>
						<br/>
						<br/>
					</div>
				</td>
			</tr>
		</c:forEach>
	</table>
	<table width="97%">
		<tr>
			<td width="100%" align="right" >
				<form action="common/listDanshiEvent.do">
					跳转到第
					<select name="page" onchange="javaScript:document.getElementsByTagName('form')[1].submit()">
						<c:forEach var="page" begin="1" end="${requestScope.count + 1}" step="1">
							<option value="<c:out value="${page}" />"><c:out value="${page}" /></option>&nbsp;
						</c:forEach>	
					</select>
					页
				</form>
			</td>
		</tr>
	</table>
</body>
</html>

  


